//
//  MapTool.m
//  DuckAndDoc
//
//  Created by 蓝水软件 on 2017/6/5.
//  Copyright © 2017年 苏州蓝水有限公司. All rights reserved.
//

#import "MapTool.h"
#import <CoreLocation/CoreLocation.h>

@implementation MapTool
//判断是否在范围内
+ (BOOL)isAccessRangeWithRadius:(double)radius myLocation:(CLLocationCoordinate2D)myLocation meetLocation:(CLLocationCoordinate2D)meetLocation{
    return sqrt((myLocation.latitude-meetLocation.latitude)*(myLocation.latitude-meetLocation.latitude)+(myLocation.longitude-meetLocation.longitude)*(myLocation.longitude-meetLocation.longitude))*111*1000 < radius;
}
@end
